package random;

public class SimpleArray2d implements Array2d {
	
	private boolean[][] array;
	
	public SimpleArray2d(int size){
		array = new boolean[size][size];
	}

	@Override
	public boolean get(int x, int y) {
		return array[x][y];
	}

	@Override
	public void set(int x, int y) {
		array[x][y] = true;
	}

	@Override
	public void unset(int x, int y) {
		array[x][y] = false;
	}

}
